package avicit.bdp.dcs.semistructure.dto;

import io.swagger.annotations.ApiModelProperty;

/**
 * hive配置json数据
 * {"skipFileHeader":1,"skipLine":1,"emptyLineProcess":1,"dstTable":"param","path":"/aa","fileName":"airplane",
 * "fileType":"2","writeMode":1,"fileSeparator":",","defaultFS":""}
 * skipFileHeader:跳过文件头，是：1，否：0
 * skipLine:跳过行数
 * emptyLineProcess:空行处理，跳过：1，结束任务：2
 * dstTable:hive目标表
 * path:路径
 * fileName:文件名
 * fileType:文件类型，orc：1，csv：2，text：3，excel：4
 * writeMode:写入模式，写入前不做任何处理：1，写入目录下有执行文件名为前缀的文件，直接报错：2
 * fileSeparator:分隔符
 * defaultFS:defaultFS
 */
public class HiveJsonDto {

    @ApiModelProperty(value = "跳过文件头，是：1，否：0")
    private Integer skipFileHeader;

    @ApiModelProperty(value = "跳过行数")
    private Integer skipLine;

    @ApiModelProperty(value = "空行处理，跳过：1，结束任务：2")
    private Integer emptyLineProcess;

    @ApiModelProperty(value = "hive目标表")
    private String dstTable;

    @ApiModelProperty(value = "路径")
    private String path;

    @ApiModelProperty(value = "文件名")
    private String fileName;

    @ApiModelProperty(value = "文件类型，orc：1，csv：2，text：3，excel：4")
    private Integer fileType;
    private String fileTypeString;

    @ApiModelProperty(value = "写入模式，写入前不做任何处理：1，写入目录下有执行文件名为前缀的文件，直接报错：2")
    private Integer writeMode;
    private String writeModeString;

    @ApiModelProperty(value = "分隔符")
    private String fileSeparator;

    @ApiModelProperty(value = "defaultFS")
    private String defaultFS;

    public Integer getSkipFileHeader() {
        return skipFileHeader;
    }

    public void setSkipFileHeader(Integer skipFileHeader) {
        this.skipFileHeader = skipFileHeader;
    }

    public Integer getSkipLine() {
        return skipLine;
    }

    public void setSkipLine(Integer skipLine) {
        this.skipLine = skipLine;
    }

    public Integer getEmptyLineProcess() {
        return emptyLineProcess;
    }

    public void setEmptyLineProcess(Integer emptyLineProcess) {
        this.emptyLineProcess = emptyLineProcess;
    }

    public String getDstTable() {
        return dstTable;
    }

    public void setDstTable(String dstTable) {
        this.dstTable = dstTable;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Integer getFileType() {
        return fileType;
    }

    public void setFileType(Integer fileType) {
        this.fileType = fileType;
    }

    public Integer getWriteMode() {
        return writeMode;
    }

    public void setWriteMode(Integer writeMode) {
        this.writeMode = writeMode;
    }

    public String getFileSeparator() {
        return fileSeparator;
    }

    public void setFileSeparator(String fileSeparator) {
        this.fileSeparator = fileSeparator;
    }

    public String getFileTypeString() {
        return fileTypeString;
    }

    public void setFileTypeString(String fileTypeString) {
        this.fileTypeString = fileTypeString;
    }

    public String getWriteModeString() {
        return writeModeString;
    }

    public void setWriteModeString(String writeModeString) {
        this.writeModeString = writeModeString;
    }

    public String getDefaultFS() {
        return defaultFS;
    }

    public void setDefaultFS(String defaultFS) {
        this.defaultFS = defaultFS;
    }

}
